<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>数组对象</title>
	<script type="text/javascript">

		// document.write();

		var arr = [88,56,78,546,67,555,70,90];

		// var arr1=[99999];


		// var newArr = arr.slice(1,3);

		// alert(newArr);


		// var newArr = arr.concat(arr1);

		// alert(newArr);



		// arr.splice(-1,0,7777,8888);

		// arr.splice(-4,2);

		// var str = arr.join('*');

		// alert(str);

		// alert(arr.length);

		// arr[7]=1000;
		// arr[8]=23423;

		// alert(arr.unshift(9999));

		// alert(arr.push(100));

		// alert(arr.pop());
		// alert(arr.shift());

		var arr = ['a','b','c','a','d','e','c','f','d','d','d','d'];

		function quchong (arr) {

			for (var i = 0; i < arr.length; i++) {
				for (var k = i+1; k <arr.length; k++) {
					if(arr[i]==arr[k]){
						arr.splice(k,1);
						k--;
					}
				};
			};

			return arr;
			
		}

		var res = quchong(arr);

		alert(res);





	</script>
</head>
<body>
	
</body>
</html>